<?php
 
namespace UserForm\Controller;
 
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
 
class IndexController extends AbstractActionController
{
    public function indexAction()                     //一个action(page)返回一个viewModel对象
    {
        $view= new ViewModel();
        return $view;
    }
     
    public function registerAction()
    {
        $view=new ViewModel();
      //  $view->setTemplate('userform/index/new-user');
        return $view;                             //一个action(page)返回一个viewModel对象
    }
 
    public function loginAction()
    {
        $view=new ViewModel();
       // $view->setTemplate('userform/index/login');
        return $view;                            //一个action(page)返回一个viewModel对象
     }
}
?>

